package dtd.PHS.VND_ExchangeRate.ui;

import android.content.Context;
import android.view.View;
import android.widget.FrameLayout;
import dtd.PHS.VND_ExchangeRate.data.IDelegateDataGetter;

public abstract
	class RequestableFrameLayout 
	extends FrameLayout 
	implements IDelegateDataGetter 
{

	protected static final int WAITING_FRAME = 0;
	protected static final int DATA_FRAME = 1;

	protected FrameLayout main_frames = null;
	public RequestableFrameLayout(Context context) {
		super(context);
		
	}
	
	public abstract void createViews();
	
	public void showOnlyView(int id) {
		for(int i = 0 ; i < main_frames.getChildCount() ; i++)
			if ( i == id ) 
				main_frames.getChildAt(i).setVisibility(View.VISIBLE);
			else main_frames.getChildAt(i).setVisibility(View.GONE);
	}


}
